package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("permission")
public class Permission extends Model<Permission> implements Serializable {


    /**
     * 权限ID
     */
    @TableId(value = "permission_id", type = IdType.AUTO)
    private Integer permissionId;

    /**
     * 权限名称
     */
    @TableField("permission_name")
    private String permissionName;

    /**
     * 权限是否被启用
     */
    @TableField("permission_is_enable")
    private Boolean permissionIsEnable;

    public Integer getPermissionId() {
        return permissionId;
    }

    public Permission setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
        return this;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public Permission setPermissionName(String permissionName) {
        this.permissionName = permissionName;
        return this;
    }

    public Boolean getPermissionIsEnable() {
        return permissionIsEnable;
    }

    public Permission setPermissionIsEnable(Boolean permissionIsEnable) {
        this.permissionIsEnable = permissionIsEnable;
        return this;
    }

    @Override
    public String toString() {
        return "Permission{" +
                "permissionId=" + permissionId +
                ", permissionName=" + permissionName +
                ", permissionIsEnable=" + permissionIsEnable +
                "}";
    }
}
